package cn.lixu.controller;

import cn.lixu.domain.User;
import cn.lixu.feighClient.UserFeighClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lixu
 * @data 2022/08/19 0019 11:53:43
 * @param: null
 * @return: null
 **/
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private UserFeighClient userFeighClient;

    @GetMapping("/getById/{id}")
    public User getById(@PathVariable("id") Long id) {
        return userFeighClient.getById(id);
    }
}
